package com.example.demo;

import com.example.demo.src.PromotionStrategy;

/**
 * Created by Easettle
 * Date:2020/5/8 23:15
 * Email:easettle@qq.com
 * 促销活动方案类
 */
public class PromotionActivity {

    private PromotionStrategy promotionStrategy;

    public PromotionActivity(PromotionStrategy promotionStrategy) {
        this.promotionStrategy = promotionStrategy;
    }

    public void execute(){
        promotionStrategy.doPromotion();
    }
}
